package com.social.service;

import com.social.dao.PraiseMapper;
import com.social.dao.model.Praise;
import com.social.dao.model.PraiseExample;
import com.social.daoEx.PraiseMapperEx;
import com.social.daoEx.model.PraiseEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PraiseService {
    @Autowired
    private PraiseMapper praiseMapper;
    @Autowired
    private PraiseMapperEx praiseMapperEx;

    private static final Logger logger = Logger.getLogger(PraiseService.class);

    public int countByExample(PraiseExample example) {
        return this.praiseMapper.countByExample(example);
    }

    public Praise selectByPrimaryKey(String id) {
        return this.praiseMapper.selectByPrimaryKey(id);
    }

    public List<Praise> selectByExample(PraiseExample example) {
        return this.praiseMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.praiseMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Praise record) {
        return this.praiseMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Praise record) {
        return this.praiseMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(PraiseExample example) {
        return this.praiseMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Praise record, PraiseExample example) {
        return this.praiseMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Praise record, PraiseExample example) {
        return this.praiseMapper.updateByExample(record, example);
    }

    public int insert(Praise record) {
        return this.praiseMapper.insert(record);
    }

    public int insertSelective(Praise record) {
        return this.praiseMapper.insertSelective(record);
    }

	public List<PraiseEx> selectList(Map<String, Object> map) {
		return praiseMapperEx.selectList(map);
	}
}